<?php
namespace App\Controllers;

use App\Controllers\BaseController;
    class Media extends BaseController{
        public function image($filename){
            readfile(WRITEPATH . 'data/' . $filename);
        }
    }